import api from '../index';
import urls from './urls';

const header = {};

export default {

    add(data) {
        return api.post(urls.add, null, null, data);
    },

    getbyid(id) {
        return api.get(urls.getbyid + '?id=' + id, null, null);
    },
    modify(data) {
        return api.post(urls.modify, null, null, data);
    },

    deletebyid(id) {
        return api.get(urls.deletebyid + '?id=' + id, null, null);
    },

    getbyids(param) {
        return api.get(urls.getbyids, param, null);
    }
};